#pragma once
#include<opencv2/opencv.hpp>
#include "CMMap.h"
#include"CEnemy.h"
#include"CImageRes.h"
#include"CTower.h"
#include"CFire.h"

class CEngin
{
public:
	CEngin();
	~CEngin();
	vector<CEnemy *>m_enemies;
	CMMap m_map;
	CimageRes m_res;
	IplImage *m_copybk;
	CTower m_tower;
	vector<CTower >m_towers;
	int m_currid;
	int m_states;
	CEnemy m_count;
	void Initgame();
	void Run();
	void Pass1();
	void ReleaseGame();
	void InitEnemies();
	void AddTower();
	CvPoint m_currttowposb;

};
